<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
onLaunch(() => {
  console.log("App Launch");
  //条件编译
  // #ifdef  MP-WEIXIN
  //获取胶囊按钮的位置信息
  const menuInfo = uni.getMenuButtonBoundingClientRect()
  //保存到缓存中
  uni.setStorageSync('menuInfo', menuInfo)
  // #endif

});
onShow(() => {
  console.log("App Show");
});
onHide(() => {
  console.log("App Hide");
});
</script>
<style></style>
